import React from 'react'
import DateSelect from '../ui-components/dateSelect'
import Code from './Code'
import style from './style'
import moment from 'moment'

export default () => (
	<div className={style.root}>
		<Code>{'<DateSelect onChange={..}/>'}</Code>
    <div>
      <DateSelect
        time='1987-10-22'
        onChange={time => console.log(moment(time).format('YYYY-MM-DD'))}
      />
    </div>
	</div>
)
